<?php

function now(){
    return (int) (microtime(true) * 1000 * 1000);
}

echo now();